package test;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class XxxController {
    @RequestMapping("/product1/list")
    public String list1() {
        //http://localhost:8080/product1/WEB-INF/index.jsp
        System.out.println("---/product1/list");
        return "index";
    }

    @RequestMapping("/product2")
    public String list2() {
//        http://localhost:8080/WEB-INF/index.jsp
        System.out.println("---/product2");
        return "index";
    }
}
